package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_dianping;

import cn.com.api.mapper.ApiT_dianpingMapper;

import cn.com.api.service.ApiT_dianpingService;

/**
 * 
 **/
@Service
public class T_dianpingServiceImplBase {
	@Autowired
	private ApiT_dianpingMapper apiT_dianpingMapper;

	// 根据id获取
	public ApiT_dianping findT_dianpingById(Integer id) {
		ApiT_dianping t_dianping = apiT_dianpingMapper.findT_dianpingBycId(id);
		return t_dianping;
	}

	// 查看数据集
	public List<ApiT_dianping> findT_dianpings() {
		List<ApiT_dianping> t_dianpings = apiT_dianpingMapper.findT_dianpings();
		return t_dianpings;
	}

	// 添加
	public int insertT_dianping(ApiT_dianping t_dianping) {
		int ret_I = apiT_dianpingMapper.insertT_dianping(t_dianping);
		return ret_I;
	}

	// 修改
	public int updateT_dianping(ApiT_dianping t_dianping) {
		int ret_I = apiT_dianpingMapper.updateT_dianping(t_dianping);
		return ret_I;
	}

	// 删除
	public int deleteT_dianping(Integer id) {
		int ret_I = apiT_dianpingMapper.deleteT_dianping(id);
		return ret_I;
	}

}
